<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="../../../common/taglib.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<sfa:mainTitle></sfa:mainTitle>
		<%@ include file="../../../common/meta.jsp"%>
		<style type="text/css">
input {
	border-bottom-width: 2px;
	border-left-width: 2px;
	border-right-width: 2px;
	border-top-width: 2px;
	color: #000000;
	font-family: use-lang-def;
	font-size: 15px;
	font-weight: 400;
	padding: 1px;
	text-align: default;
	text-indent: 0px;
	text-transform: none;
}
</style>

		<script type="text/javascript">
function next() {
	var send = $("input[name='send']:checked").val();
	//alert(send);
	$("#more").hide();
	$("#rule").show();
	$("#know").click(function() {
		if (send == "onetomore") {
			window.location.href = "${path}/sms/index/sendmessage";
		}

		if (send == "moretomore") {
			window.location.href = "${path}/sms/index/intoexcel";
		}
	});
}
$(function(){
	$("#back").click(function(){
		$("#rule").hide();
		$("#more").show();
	});
	
	var date = new Date();
	var hours = date.getHours();
	
	if(hours<22 && hours > 6){
		
	}else{
		$("#submint").attr("disabled","disabled");
		$("#prompt").show();	 
		document.getElementById('time').innerHTML=new Date().toLocaleString()+' '+' '.charAt(new Date().getDay());
 		setInterval("document.getElementById('time').innerHTML=new Date().toLocaleString()+'  '+' '.charAt(new Date().getDay());",1000);
	}
	
});
</script>
<link rel="stylesheet" type="text/css"
			href="${path}/css/addnews/step1.css" id="step">
				<link rel="stylesheet" type="text/css"
			href="${path}/css/step/an.css" >
</head>
	<body id="master">
		<sfa:mainHeader></sfa:mainHeader>
		<div class="webpart3 contentarea">
			<div class="webpart-head">
				<div class="webpart-head-item">
					短信发送
				</div>
			</div>
			<div class="webpart-main">
				<div class="webpart-main-item" style="padding-top: 12px;">
					<div id="more">
					<div class="at_loc" style="margin-left: 50px;"> 
						<span class="now" style="width: 208px;" id="firstStep">选择发送模式</span>
						<span class="line_frist" id="firstStep_line"></span>
						<span style="width: 208px;" id="secondStep">发送规则</span>
						<span class="line_end" id="secondStep_line"></span>
						 </div>
						<table style="margin-top: 10px;" cellpadding="0" cellspacing="10" > 
						<tr>
							<td>
							<input type="radio" value="onetomore" name="send" id="send1"
							checked="checked">
							</td>
							
							<td>
								<label for="send1">相同的消息内容发送给多个手机号码</label>
							</td>
						</tr>
						<tr>
							<td>
							<input type="radio" value="moretomore" name="send" id="send2">
							</td>
							
							<td>
							 	<label for="send2">每个手机号码短信内容均不同</label>
							</td>
						</tr>
						</table>
						
						<input type="button" class="linkbtn2" id ="submint" onclick="next()" value="下一步" />
						<div id="prompt" style="display: none;" >
						<font color="red">由于供应商不支持当日下午22:00后到次日上午6:00前发送短信,</font><br/>
						<font color="red">请在规定的时间内发送,谢谢合作。</font><br/>
						<font color="red">当前时间为：</font><span id="time"></span>
						</div>
					</div>
					<div style="display: none" id="rule">
					<div class="at_loc" style="margin-left: 50px;">
						<span style="width: 208px;" id="firstStep">选择发送模式</span>
						<span class="line_last" id="firstStep_line"></span>
						<span  class="now"  style="width: 208px;" id="secondStep">发送规则</span>
						<span class="line_over" id="secondStep_line"></span>
						 </div>
						<table cellpadding="0" cellspacing="10" class="dg_borderstyle">
							·
							<tr
								class="dg_alternatingitemstyle">
								<td colspan="2" align="center">
									发送内容规则
								</td>
							</tr>
							<tr class="dg_alternatingitemstyle">
								<td width="10%">
									1->：
								</td>
								<td>
									目前只支持11位长度的移动、联通、电信手机号码;
								</td>
							</tr>
							<tr class="dg_alternatingitemstyle">
								<td>
									2->：
								</td>
								<td>
									可以从Excel中将手机号码直接复制到手机号码列表中;
								</td>
							</tr>
							<tr class="dg_alternatingitemstyle">
								<td>
									3->：
								</td>
								<td>
									支持一个或者多个手机号码同时发送同一条内容的短信;
								</td>
							</tr>
							<tr class="dg_alternatingitemstyle">
								<td>
									4->：
								</td>
								<td>
									短信内容不可包含运营商不予发送的"敏感词"，请尽量避免使用;
								</td>
							</tr>
							<tr class="dg_alternatingitemstyle">
								<td>
									5->：
								</td>
								<td>
									提交后系统若检测出"敏感词"，请用相应字词代替重新提交;
								</td>
							</tr>
							<tr class="dg_alternatingitemstyle">
								<td>
									6->：
								</td>
								<td>
									默认一条短信的长度为64个字符，超出64个字符长度的短信将被拆分发送;
								</td>
							</tr>
							<tr class="dg_alternatingitemstyle">
								<td>
									7->：
								</td>
								<td>
									有多个手机号码，则号码与号码直接必须用逗号分开;
									移动、联通运营商不支持晚上20点之后批量发送短信,如有提交也会拦截后至第二天才发送,
									为免耽误您发送紧急信息,请使用手机代替发送或第二天再提交
								</td>
							</tr>
						</table>
						<p />
							<input type="button" id="back" class="linkbtn2" value="上一步"/>
							<a id="know" href="javascript:" class="linkbtn"><span>知道了
							</span> </a>
					</div>
				</div>
				<div class="webpart-foot">
					<div class="webpart-foot-item">
					</div>
				</div>
			</div>
		</div>
		<sfa:mainFooter></sfa:mainFooter>
	</body>
</html>

